<?php get_header(); ?>

<div id="page">
<?php get_sidebar(); ?>

	<?php if (have_posts()) : ?>
	<?php while (have_posts()) : the_post(); ?>

<div class="post" id="post-<?php the_ID(); ?>">
	<div class="postdate">
	  <p class="date"><?php the_time('jS'); ?></p>
	  <p class="year"><?php the_time('y,m'); ?></p>
	</div>
	<div class="posttitle">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
      <p class="postmeta"><span class="comment"><?php comments_popup_link('没人回复', '1 个回复', '% 个回复'); ?></span><span class="file"><?php the_category(', ') ?></span><span class="edit"><?php the_author() ?></span><?php edit_post_link('Edit', '', ''); ?></p>
    </div>

	<div class="content">
		<?php the_excerpt(); ?>
		<?php the_tags('<p class="tag">', ', ', '</p>'); ?>
	</div>
	</div>


		<?php endwhile; ?>

		<div class="nav">
			<div class="nleft"><?php next_posts_link('上一页') ?></div>
			<div class="nright"><?php previous_posts_link('下一页') ?></div>
		</div>

	<?php else : ?>
	<div class="post">
	<div class="postpage">
	<h2>！啥也没找到</h2>
	<p class="postmeta">&nbsp;&nbsp;&nbsp;莫急，再搜搜看……</p>
   </div>

		<div id="search">
		  <?php include (TEMPLATEPATH . '/searchform.php'); ?>
		  <a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/feedme.gif" alt="不管，先订阅了再说" width="200" height="200" /></a>
		  </div> 
		  </div>

	<?php endif; ?>


</div>
</div>

<?php get_footer(); ?>
